package com.casstime.ec.cloud.discount.dao.giftPromotion;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.casstime.ec.cloud.dao.jpa.mybatis.Mapper;
import com.casstime.ec.cloud.values.giftPromotion.GiftPromotionGift;
/**
 * ClassName: AfterSalesPolicyMapper 
 * Function: (买赠活动商品DAO)
 * Reason: ADD REASON(可选).
 *  
 * @author wu.chen 
 * 2018年1月30日 上午11:17:38
 * @version   
 * @since JDK 1.8
 */
@SuppressWarnings("rawtypes")
public interface GiftPromotionGiftMapper extends Mapper {
	
	int insertPromotionGifts(@Param("promotionGifts") List<GiftPromotionGift> promotionGifts);
	
	List<GiftPromotionGift> listPromotionGifts(@Param("giftPromotionIds") List<String> giftPromotionIds);
	
	List<GiftPromotionGift> listPromotionGiftsByGiftIds(@Param("giftIds") List<String> giftIds);
	
	int deletePromotionGiftsByPromotionId(@Param("giftPromotionId") String giftPromotionId);
	
}
